package com.ruoyi.dynamic.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.dynamic.model.pojo.entity.RoomUserPostPermission;

import java.util.List;

/**
 * <p>
 * 房间马甲设置 服务类
 * </p>
 *
 * @author Gnc
 * @since 2025-01-14
 */
public interface IRoomUserPostPermissionService extends IService<RoomUserPostPermission> {


    List<RoomUserPostPermission> getPerByUser(Long userPostId);

    /**
     * 判断一个用户是否拥有权限
     */
    boolean isPermissionByRoomIdAndUserId(Long roomId, Long userId, Integer perId);

}
